package ZUOYE;
import java.util.Scanner;
public class Graduate  extends Student{
    public String  title ;
    public String company;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public static void main(String[] args){
        //实例和创建对象
        Student ya=new Student();
        Scanner sc= new Scanner(System.in);
        System.out.println("请分别输入学号和姓名、职位、公司的名称");
        String xm=sc.next();
        String xh=sc.next();
        String title=sc.next();
        String company=sc.next();
        //形参
        ya.test(xm, xh,title,company);
    }

}
